# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=beep
pkgver=1.4.12
pkgrel=1
pkgdesc="A terminal bell"
url="https://github.com/spkr-beep/beep"
arch="all"
license="GPL-2.0-or-later"
makedepends="linux-headers"
options="!check" # no test suite
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/spkr-beep/beep/archive/v$pkgver.tar.gz
	0001-disable-gcc-ubsan.patch
	0002-remove-option-werror.patch
	0003-remove-option-werror.patch
	"

build() {
	make prefix="/usr" DESTDIR="$pkgdir"
}

package() {
	make prefix="/usr" DESTDIR="$pkgdir" install
}

sha512sums="
18fed77bc4820ecc84ac12e903d516d5228fa2038df1788cc68db76e40b3c47a271911cc45bc48ce94e3f215803c5c05cb6c08ebb47ae6d7fcf1e0bc1ac169cd  beep-1.4.12.tar.gz
44d1871a1cd763468873242d77c21c9c9f8682c75a561592d61536ecb98917b108d61d1801d974cc05ffed5d009dfafe21cc9705f8494edcb6a01aa528b9cabd  0001-disable-gcc-ubsan.patch
e04dff41163889b4ec263ceba3a0b5757e900863c8165b3b893af30b16894f1b08414d345b6195f229824811d9b737c3ff100c772fbf02de5f30442c9f3f64cf  0002-remove-option-werror.patch
977b7e001c80af7086d388dc05add931e9aad985f163d511c873b350b7a001bc8faaa198e074b15d3b310d0a09413a7d9989b519be89bf73119d3d14a6cd4dd9  0003-remove-option-werror.patch
"
